]> dgit.raspbian.org Git - gnome-shell.git/commit
iconGrid: Fix nonsense condition
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 29 Jan 2019 21:43:41 +0000 (22:43 +0100)
committerFlorian Müllner <florian.muellner@gmail.com>
Wed, 30 Jan 2019 16:13:16 +0000 (16:13 +0000)
commita7943ff9340480f2db0b91f7632ea1d882a9caed
tree979cde42ea089eb257dc38e4704f894810549921
parentc353914dd081c243d8d9a2b0670a35ed19c94cce
iconGrid: Fix nonsense condition

Just like the "in" operator in the previous patch, "instanceof" has
a lower precedence than negation, resulting in the nonsense condition
of "true instanceof BaseIcon".

Add parentheses to get the intended behavior.

Spotted by eslint.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/375
js/ui/iconGrid.js